﻿using System;
using System.Web.Script.Serialization;
using Antlr.Runtime;
using Newtonsoft.Json;

namespace WebIG.Web
{
    public class Utility
    {
        public static string GetDateTime(string strTimestamp)
        {
            DateTime dt = new DateTime(1970, 1, 1, 0, 0, 0, 0);

            double timestamp = double.Parse(strTimestamp);
            var utctime = dt.AddSeconds(timestamp);

            return utctime.ToLocalTime().ToString();
        }
    }
}